Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase flexibility of union literals #129

Merged
merged 1 commit into from
Sep 6, 2017
Merged

Increase flexibility of union literals #129

merged 1 commit into from
Sep 6, 2017

Conversation

Gabriella439
Copy link
Collaborator

Fixes #125

Before this change, the parser for union literals required the selected
alternative to be at the front of the union like this:

< A = True | B : Integer >  -- Allowed
< B : Integer | A = True >  -- Not allowed

After this change, the alternative you select can by anywhere in the
union literal:

< A = True | B : Integer >  -- Allowed
< B : Integer | A = True >  -- Allowed

Fixes #125

Before this change, the parser for union literals required the selected
alternative to be at the front of the union like this:

```haskell
< A = True | B : Integer >  -- Allowed
< B : Integer | A = True >  -- Not allowed
```

After this change, the alternative you select can by anywhere in the
union literal:

```haskell
< A = True | B : Integer >  -- Allowed
< B : Integer | A = True >  -- Allowed
```
@bosu bosu merged commit 79980f1 into master Sep 6, 2017
@sjakobi sjakobi deleted the gabriel/union_lit_2 branch July 25, 2019 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants